<template>
  <div>
    <p>state.count：{{ count }}</p>
    <p>
      <button @click="$store.commit('increment', 2)">加2（commit）</button>
      <button @click="$store.commit('decrease')">减1（commit）</button>
    </p>
    <p></p>
  </div>
</template>

<script>
export default {
  computed: {
    count() {
      return this.$store.state.count;
    },
  },
};
</script>
